package com.net;


import java.lang.reflect.ParameterizedType;
import java.util.*;

/**
 * Created by whf on 16/5/14.
 */
public class Main {

    public static void main(String[] args) {
       
    	String[]ar1={"test1","test2","test3"};
        String[]ar2={"test700","test7002","test7003"};
        
        ArrayList<String[]>list=new ArrayList<String[]>(2);
        list.add(ar1);
        list.add(ar2);
        
        ReqParam.Builder builder=new ReqParam.Builder("http://baidu.com");
        //builder.putString("200").putString("Success").putString("张三").putString("18").putArray(list).putString("sign");
        Test1 test1=new Test1();
        test1.id="test1_id";
        test1.te="张三";
        test1.user="用户";
       // builder.putObj(test1);
        
        ArrayList<Test1>list1=new ArrayList<Test1>();
        Test1 test11=new Test1();
        test11.id="id1";
        test11.te="te1";
        test11.user="用户1";
        list1.add(test11);
        
        Test1 test112=new Test1();
        test112.id="id2";
        test112.te="te2";
        test112.user="用户2";
        list1.add(test112);
        Test t=new Test();
        t.age="19";
        t.name="tPar";
        t.list=list1;
        builder.putObj(t);//(list1, Test1.class);
        
        
        
        System.out.println("args = [" + builder.create().toString() + "]");
       
        Client client=new Client();
        RespResult resu= client.exe(builder.create(),Test.class);
        System.out.println("result= " + resu.toString());
    }


}
